﻿@model shop.Mau

@{
    ViewBag.Title = "Create";
}

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Mau</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TenMau)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenMau)
            @Html.ValidationMessageFor(model => model.TenMau)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaMau)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaMau)
            @Html.ValidationMessageFor(model => model.MaMau)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HinhAnh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HinhAnh)
            @Html.ValidationMessageFor(model => model.HinhAnh)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

<div id="content">
    <div id="content-header">
        <div id="breadcrumb">
            <a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
            <a href="#" class="tip-bottom">Form elements</a>
            <a href="#" class="current">Common elements</a>
        </div>       
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title">
                        <span class="icon">
                            <i class="icon-align-justify"></i>
                        </span>
                        <h5>Thêm sản phẩm</h5>
                    </div>
                    <div class="widget-content nopadding">
                        @using (Html.BeginForm("create", "mau", FormMethod.Post, new { enctype = "multipart/form-data", @id = "formsanpham", @class = "form-horizontal" }))
                        {
                            @Html.AntiForgeryToken()
                            @Html.ValidationSummary(true)
                            <div class="control-group">
                                <label class="control-label">Tên màu :</label>
                                <div class="controls">
                                    <input id="TenMau" type="text" class="required span3" name="TenMau" placeholder="Nhập tên màu" />
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Mã Màu:</label>
                                <div class="controls">
                                    <input id="MaMau" name="MaMau" type="text" class="required span3"  placeholder="Nhận mã mau" />
                                    <div id="errormamau"></div>                                    
                                </div>
                            </div>                           
                            <div class="control-group">
                                <label class="control-label">Hình hình</label>
                                <div class="controls">
                                    <input type="file" name="AnhMau" accept="jpg|gif|png|jpeg" />
                                </div>
                            </div>
                            <div class="form-actions">
                                <button id="them" type="submit" class="btn btn-success">Thêm</button>
                            </div>
                        }

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row-fluid">
    <div id="footer" class="span12"> 2012 &copy; Marutii Admin. Brought to you by <a href="http://themedesigner.in">Themedesigner.in</a> </div>
</div>
<script src="~/Content/themes/maruti/js/jquery.min.js"></script>
<script src="~/Content/themes/maruti/js/jquery.ui.custom.js"></script>
<script src="~/Content/themes/maruti/js/bootstrap.min.js"></script>
<script src="~/Content/themes/maruti/js/bootstrap-colorpicker.js"></script>
<script src="~/Content/themes/maruti/js/bootstrap-datepicker.js"></script>
<script src="~/Content/themes/maruti/js/jquery.uniform.js"></script>
<script src="~/Content/themes/maruti/js/select2.min.js"></script>
<script src="~/Content/themes/maruti/js/maruti.js"></script>
<script src="~/Content/themes/maruti/js/maruti.form_common.js"></script>
<script src="~/Plugin/ckeditor/ckeditor.js"></script>
<script src="~/Content/js/jquery.validate.js"></script>
<script src="~/Content/js/localization/messages_vi.js"></script>